using System.Collections.Generic;
using UnityEngine;
using YooAsset;

namespace Game.Framework
{
    public class AssetConfig : ScriptableObject
    {
        public static string AssetConfigPath = "Settings/AssetConfig";
        private static AssetConfig m_instance = null;

        public static AssetConfig Instance
        {
            get
            {
                if (m_instance == null)
                {
                    m_instance = Resources.Load<AssetConfig>(AssetConfigPath);
                }
                return m_instance;
            }
        }
        
        
        
        public EPlayMode RunMode = EPlayMode.EditorSimulateMode;
        
        [Space(10)]
        [Header(" --------------------- 资源版本号 ----------------------")]
        public string AndroidVersion = "v1_0_0";
        public string IOSVersion = "v1_0_0";

        [Space(10)] 
        [Header("默认包名")] 
        public string PackageName;
        
        [Space(10)] 
        [Header("资源包tag列表")] 
        public List<string> AssetsTags;
        
        [Space(10)] 
        [Header("根目录名称（保持和YooAssets资源系统一致）")] 
        public string DefaultFolderName;
        
        [Space(10)]
        [Header("线上资源服务器地址")]
        public string ResServer_Release_URL;

        [Space(10)]
        [Header("测试资源服器地址")]
        public string ResServer_Production_URL;
    }
}


